package com.wuwei.elearning.question.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuwei.elearning.question.domain.SubjectTestRelationQuestion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wuwei
 * @since 2025-03-12
 */
public interface SubjectTestRelationQuestionMapper extends BaseMapper<SubjectTestRelationQuestion> {

    /**
     * 批量向subject_test_relation_question表插入 subject_test_id等于id 且 question_id等于questionIds数组的元素的数据
     * @param subjectTestId
     * @param questionIds
     */
    void myBatchInsert(@Param("subjectTestId") Long subjectTestId, @Param("questionIds") List<Long> questionIds);

    List<Long> selectQuestionIds(Long subjectTestId);

}
